package com.shelpe.services.simbasync.service.simbaproxy;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name="${simbaproxy.serviceID}", url="${simbaproxy.url}")
@RequestMapping(value = "/simba")
public interface DiamondShowProxy {
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.adzones.get")
	public String getAdZoneInfo(@RequestHeader("tenantID") Long userId);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.adzone.rpts.get")
	public String getRptAdZone(@RequestHeader("tenantID") Long userId, @RequestParam("adzone_id") Long adZoneId);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.campaign.rpts.download")
	public String getRptAdvertiserCampaign(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.trans.rpts.download")
	public String getRptAdvertiserTrans(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.adzone.rpts.download")
	public String getRptAdvertiserAdzone(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);

	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.keyword.rpts.download")
	public String getRptAdvertiserKeyword(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.account.rpts.get")
	public String getRptAdvertiserAccount(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.category.rpts.get")
	public String getRptAdvertiserCategory(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.rpt.task.get")
	public String getRptTask(@RequestHeader("tenantID") Long userId, @RequestParam("task_id") Long taskId);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.adboard.rpts.download")
	public String getRptAdvertiserAdboard(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.zuanshi.advertiser.dest.rpts.download")
	public String getRptAdvertiserDest(@RequestHeader("tenantID") Long userId, @RequestParam("start_time") String startTime, 
			@RequestParam("end_time") String endTime, @RequestParam("rpt_type") String rptType);
	
	
}
